//
//  FilterFirstLevelModel.m
//  HAODE
//
//  Created by LiYinDi on 16/5/25.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "FilterFirstLevelModel.h"
#import "FilterSecondLevelModel.h"

@implementation FilterFirstLevelModel
+(instancetype)dataModelWithDict:(NSDictionary *)dict
{
    FilterFirstLevelModel *model=[[self alloc] init];
    model.dataType=dict[@"dataType"];
    model.isSingle=dict[@"isSingle"];
    model.typeCode=dict[@"typeCode"];
    model.typeName=dict[@"typeName"];
//    model.typeName=typeName;
    NSMutableArray *array=[NSMutableArray array];
    NSArray *imgArray=dict[@"items"];
    for (NSDictionary *dic in imgArray)
    {
        FilterSecondLevelModel *secondLevelModel=[FilterSecondLevelModel dataModelWithDict:dic];
        [array addObject:secondLevelModel];
        
    }
    model.secondModelArray=array;
    return model;
}
@end
